<template>
  <div class="home">
    <home-head></home-head>
    <home-swiper :swiperList="swiperList" ></home-swiper>
  </div>
</template>

<script>
import HomeHead from './components/Head'
import HomeSwiper from './components/Swiper'
import {HTTP} from '../../models/HTTP'
const http = new HTTP()
export default {
  name: 'home',
  components: {
    HomeHead,
    HomeSwiper
  },
  data(){
    return{
      swiperList:[]
    }
  },
  mounted(){
    http.request({
      url:"swiper"
    }).then(res=>{
      console.log(res)
      this.swiperList = res.data.swiperList
    })
  }
}
</script>
<style lang="scss" scoped>

</style>

